################################################################# 
## Title:	Moreover.com News Feed for Smartor's ezPortal
## Version:	1.0.0
## Author:	ashben <phpbb@broid.com> www.ashben.net / eServicesHub.com
##		Smartor <smartor_xp@hotmail.com> - http://smartor.is-root.com
##
## Description: Wanna have a news feed from over 300 news categories!
##		This mod allows direct integration of moreover.com
##		news feeds into the homepage of a phpBB driven
##		forum/site. The mod uses the XML interface for a
##		generic solution and also supports news caching
##		for performance & efficiency.
##
## Files To Edit: 2
##	portal.php
##	templates/subSilver/portal_body.tpl
##
## Included Files: 1
##	newsfeed.php
##
################################################################# 
##
## To install this mod:
##
## 1. Copy the newsfeed_mod.php file to the main directory (forum root)
##
## 2. Create a "newscache" directory (without the quotes) at the main directory level
##
## 3. Give write permissions to the "newscache" directory
##	 eg: chmod 777 newscache
##	 If you have only plain ftp-access change the 'Attribute' of the "newscache" directory to rwxrwxrwx.
##
## 4. It would be wise to copy and place the provided index.html in the "newscache" directory.
##
## 5. Follow the file editing instructions below
##
## 6. Once setup and working, you may configure the mod on the following parameters:
##
##	 a. News feed URL - Edit the xmlfile variable in newsfeed_mod.php
##		This parameter takes a URL to the moreover.com news syndication web service
##		You may select a news subject from over 300 available news categories
##		Complete list: http://w.moreover.com/categories/category_list_xml.html
##
##	 b. Cache time in seconds - Edit the cachetimeinseconds variable in newsfeed_mod.php
##		The cache will be updated with a live feed after the specified time
##
##	 c. Location to the raw news cache file - Edit the cachefile variable in newsfeed_mod.php
##		This file is automatically created on the first run and updated subsequently
##
##	 d. Location to the formatted news cache file - Edit the newsfile variable in newsfeed_mod.php
##		This file is automatically created on the first run and updated subsequently
##
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 


# 
#-----[ OPEN ]-----------------------------------------------
# 
portal.php

# 
#-----[ FIND ]-----------------------------------------------
# 
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'fetchposts.'.$phpEx);

# 
#-----[ AFTER, ADD ]-----------------------------------------
# 
// News Feed
include($phpbb_root_path . 'newsfeed_mod.'.$phpEx);

# 
#-----[ FIND ]-----------------------------------------------
# 
	'L_VOTE_BUTTON' => $lang['Vote'],

#
#-----[ AFTER, ADD ]-----------------------------------------
#
	// News Feed
	'MY_NEWS_CODE' => $newsfeedtext,


#
#-----[ OPEN ]-------------------------------------------------
#
templates/subSilver/portal_body.tpl

#
#-----[ FIND ]---------------------------------------------
#
		<!-- END fetch_post_row -->

#
#-----[ AFTER, ADD ]----------------------------------------
#
		<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		  <tr>
			<td class="catHead" height="25"><span class="genmed"><b>Top Internet Stories</b></span></td>
		  </tr>
		  <tr>
			<td class="row1" align="left"><span class="gensmall">{MY_NEWS_CODE}</span></td>
		  </tr>
		</table>

# 
#-----[ SAVE/UPLOAD ALL FILES ]------------------------------------------------
# 
# EoM